import request from '@/utils/request'

// 获取行业标签列表
export function getIndustryTagsApi(params: any) {
  return request({
    url: '/system/industry-tags',
    method: 'get',
    params
  })
}

// 创建行业标签
export function createIndustryTagApi(data: any) {
  return request({
    url: '/system/industry-tags',
    method: 'post',
    data
  })
}

// 更新行业标签
export function updateIndustryTagApi(id: number, data: any) {
  return request({
    url: `/system/industry-tags/${id}`,
    method: 'put',
    data
  })
}

// 删除行业标签
export function deleteIndustryTagApi(id: number) {
  return request({
    url: `/system/industry-tags/${id}`,
    method: 'delete'
  })
}

// 获取用户行业标签
export function getUserIndustryTagsApi(userId: number) {
  return request({
    url: `/system/users/${userId}/industry-tags`,
    method: 'get'
  })
}

// 设置用户行业标签
export function setUserIndustryTagsApi(userId: number, tagIds: number[]) {
  return request({
    url: `/system/users/${userId}/industry-tags`,
    method: 'post',
    data: { tagIds }
  })
} 